//
//  Tools.swift
//  Tests
//
//  Created by XL on 2023/4/7.
//

import XCTest

func LILAssertEqualArray<T>(_ left: [T], _ right: [T], file: StaticString = #file, line: UInt = #line, message: String = "") where T: Equatable {
    XCTAssertEqual(left.count, right.count, message + "<left: \(left), right: \(right)>", file: file, line: line)
    for (index, element) in left.enumerated() {
        XCTAssertEqual(element, right[index], message, file: file, line: line)
    }
}
